package com.yunban.project.api.text_check.controller;

import com.yunban.project.api.text_check.dto.PostFeedbackReq;
import com.yunban.project.api.text_check.service.CorrectionFeedbackService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: lijiajun
 * @date: 2025-02-18
 * @version: 1.0
 */
@RestController
@Tag(name = "文本纠错反馈管理")
@RequestMapping("/correction-feedback-api")
public class CorrectionFeedbackController {

    @Resource
    private CorrectionFeedbackService correctionFeedbackService;

    @PostMapping
    @Operation(summary = "文本纠错反馈")
    public Boolean postFeedback(@RequestBody @Validated PostFeedbackReq req) {
        return correctionFeedbackService.postFeedback(req);
    }
}
